use std::any::Any;

pub fn get_catch_unwind_err(err:Box<dyn Any + Send>)->String{
    if let Some(string) = err.downcast_ref::<&str>() {
        string.to_string()
    } else if let Some(string) = err.downcast_ref::<String>() {
        string.to_string()
    } else {
        "捕获到 panic: 未知错误".to_string()
    }
}